shortcutcontroller: Document buildable support
authorMatthias Clasen <mclasen@redhat.com>
Tue, 31 Mar 2020 00:09:29 +0000 (20:09 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 31 Mar 2020 00:09:29 +0000 (20:09 -0400)
gtk/gtkshortcutcontroller.c

index d18b6902f251cb726ec9bb63b25e7914c79d15bb..d7534001fe8a2bcbdbcfc1e1627186c023da0ee6 100644 (file)
  *
  * #GtkShortcutController implements #GListModel for querying the shortcuts that
  * have been added to it.
+ *
+ * # GtkShortcutController as a GtkBuildable
+ *
+ * GtkShortcutControllers can be creates in ui files to set up shortcuts
+ * in the same place as the widgets.
+ *
+ * An example of a UI definition fragment with GtkShortcutController:
+ * |[
+ *   <object class='GtkButton'>
+ *     <child>
+ *       <object class='GtkShortcutController'>
+ *         <property name='scope'>managed</property>
+ *         <child>
+ *           <object class='GtkShortcut'>
+ *             <property name='trigger'>&lt;Control&gt;k</property>
+ *             <property name='action'>activate</property>
+ *           </object>
+ *         </child>
+ *       </object>
+ *     </child>
+ *   </object>
+ * ]|
  **/
 
 #include "config.h"